<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('不倒翁大挑战')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row" >
            <div class="col-sm-12" id="bj">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:data1:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:data1:remove')}]];
        var prefix = ctx + "system/data1";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "用户及数量",
                columns: [
                {
                    field: '',
                    title: '',
                    align:'center',
                    formatter: function(value, row, index) {
                        return "第"+(index+1)+"名"
                    }
                },
                {
                    field: 'name',
                    title: '昵称'
                },
                {
                    field: 'num',
                    title: '数量'
                },
                {
                    field: 'created',
                    title: '创建时间'
                }]
            };
            $.table.init(options);
        });
    </script>
     <style>
         /* BACKGROUNDS */
         #bj {
             background:url(/img/bg4.jpg) repeat center fixed;
         }
         body{
         font-size: 20px;
         }
     </style>
</body>
</html>